import Vue from "vue"

//加载swiper插件
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper);

//加载axios插件
import axiosInstance from "../utils/axiosInstance"
Vue.prototype.$http=axiosInstance;

//加载图片懒加载的插件
import VueLazyload from 'vue-lazyload'
import vloadingImg from "../assets/img/vloading.gif"
import vErrorImg from "../assets/img/verror.jpeg"
Vue.use(VueLazyload,{
  //真正的图片没有加载出来的时候，用哪一张图片替代
  loading:vloadingImg,
  error:vErrorImg
});

//加载消息交互插件
import {Alert, Confirm, Toast} from 'wc-messagebox'
import 'wc-messagebox/style.css'
Vue.use(Alert)
Vue.use(Confirm)
Vue.use(Toast,{
  duration:2000
})

//导入animate.css

import "animate.css"